﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Numerics;
using System.Text;

namespace CcMath
{
    /// <summary>
    /// 二维点值模型-复数模型
    /// 可用于二维取样、3维方向图等数据
    /// </summary>
    public class PointValueC
    {
        /// <summary>
        /// 直角坐标的x,球坐标、柱坐标的phi,单位:mm or deg
        /// </summary>
        public float XorPhi { get; set; }
        /// <summary>
        /// 直角坐标的y，球坐标的sita，柱坐标的z,单位:mm or deg
        /// </summary>
        public float YorZorSita { get; set; }
        public Complex Value { get; set; }
        public PointValueC() { }
        /// <summary>
        /// 
        /// </summary>
        /// <param name="xOrPhi">直角坐标的x,球坐标、柱坐标的phi,单位:mm or deg</param>
        /// <param name="yOrSita">直角坐标的y,球坐标的sita，柱坐标的z,单位:mm or deg</param>
        /// <param name="value"></param>
        public PointValueC(double xOrPhi, double yOrSita, Complex value)
        {
            XorPhi = (float)xOrPhi;
            YorZorSita = (float)yOrSita;
            Value = value;
        }
    }
}
